<?php
/*
	辅助应用
*/
defined('BY_JYA') or exit('error');
$list = array(
			array('title'=>'业务类','list'=>array(
							array('name'=>'jy_cmsarticle','title'=>'CMS内容王','icon'=>'fa-share-alt','color'=>'#cc99ff','action'=>'jy_cmsarticle/news/','desc'=>'内容为王，一键全网发布软文！','image'=>'../addons/jy_cms/resource/images/jy_cmsarticle.png'),
							array('name'=>'jy_fenleimsg','title'=>'分类信息','icon'=>'fa-navicon','color'=>'#66cc99','action'=>'jy_fenleimsg/list/','desc'=>'CMS分类信息发布','image'=>'../addons/jy_cms/resource/images/jy_fenleimsg.png'),
							array('name'=>'jy_dish','title'=>'轻松点餐','icon'=>'fa-cutlery','color'=>'#ff9933','action'=>'jy_dish/store_list/','desc'=>'外卖美食，小吃饮料','image'=>'../addons/jy_cms/resource/images/jy_fenleimsg.png'),
							array('name'=>'jy_jd','title'=>'智慧酒店','icon'=>'fa-building-o','color'=>'#66cc66','action'=>'jy_jd/index/','desc'=>'周边酒店，旅店住宿','image'=>'../addons/jy_cms/resource/images/jy_fenleimsg.png'),
							array('name'=>'jy_meiye','title'=>'康体美业','icon'=>'fa-coffee','color'=>'#FF83FA','action'=>'jy_meiye/store/','desc'=>'丽人/美发，洗脸按摩','image'=>'../addons/jy_cms/resource/images/jy_fenleimsg.png'),
							array('name'=>'jy_gohome','title'=>'上门服务','icon'=>'fa-smile-o','color'=>'#FF7F24','action'=>'jy_gohome/store/','desc'=>'上门保洁/洗衣/服务/维修','image'=>'../addons/jy_cms/resource/images/jy_fenleimsg.png'),
							array('name'=>'jy_cmso2o','title'=>'商户O2O','icon'=>'fa-life-ring','color'=>'#ffcc33','action'=>'jy_cmso2o/list/','desc'=>'商户入驻，便民黄页','image'=>'../addons/jy_cms/resource/images/jy_cmso2o.png'),
							array('name'=>'jy_cmshouse','title'=>'微房产','icon'=>'fa-building','color'=>'#ff3300','action'=>'jy_cmshouse/list/','desc'=>'房产信息，微房产','image'=>'../addons/jy_cms/resource/images/jy_cmshouse.png'),
							array('name'=>'jy_cmslive','title'=>'在线直播','icon'=>'fa-toggle-right','color'=>'#cc3366','action'=>'jy_cmslive/index/','desc'=>'在线直播，直播小视频','image'=>'../addons/jy_cms/resource/images/jy_cmslive.png'),
							array('name'=>'jy_cmsactivity','title'=>'活动报名','icon'=>'fa-pencil-square-o','color'=>'#cccc00','action'=>'jy_cmsactivity/list/','desc'=>'活动报名，海报活动','image'=>'../addons/jy_cms/resource/images/jy_cmsactivity.png'),
							array('name'=>'jy_cms360','title'=>'360全景','icon'=>'fa-pencil-square-o','color'=>'#66cc66','action'=>'jy_cms360/list/','desc'=>'全景展示，身临其境','image'=>'../addons/jy_cms/resource/images/jy_cms360.png'),
							array('name'=>'jy_cmsdecorate','title'=>'装潢装修','icon'=>'fa-pencil-square-o','color'=>'#66cc66','action'=>'jy_cmsdecorate/store/','desc'=>'装修信息，技师报价','image'=>'../addons/jy_cms/resource/images/jy_cmsdecorate.png'),
							array('name'=>'jy_cmspinche','title'=>'在线拼车','icon'=>'fa-car','color'=>'#66cc33','action'=>'jy_cmspinche/pinche/','desc'=>'同城拼车，长途拼车','image'=>'../addons/jy_cms/resource/images/jy_fenleimsg.png'),
							array('name'=>'jy_cmsphoto','title'=>'微相册','icon'=>'fa-photo','color'=>'#FFD700','action'=>'jy_cmsphoto/index/','desc'=>'微相册，相册展示！','image'=>'../addons/jy_cms/resource/images/jy_cmsalbum.png'),
			)),
			array('title'=>'辅助类','list'=>array(
							array('name'=>'jy_cmswxapp','title'=>'CMS小程序','icon'=>'fa-wechat','color'=>'#66cc33','action'=>'jy_cmswxapp/news/','desc'=>'小程序,一款轻App','image'=>'../addons/jy_cms/resource/images/jy_cmswxapp.png'),
							array('name'=>'jy_diypage','title'=>'CMS页面装修','icon'=>'','color'=>'#ccff66','action'=>'jy_cmsdiy/news/','desc'=>'自由拖拽，搭建个性页面','image'=>'../addons/jy_cms/resource/images/jy_cmssign.png'),
							array('name'=>'jy_cmspc','title'=>'CMS电脑端','icon'=>'fa-desktop','color'=>'#00cc99','action'=>'jy_cmspc/news/','desc'=>'CMS电脑端页面管理','image'=>'../addons/jy_cms/resource/images/jy_cmspc.png'),
							array('name'=>'jy_cmssign','title'=>'CMS签到','icon'=>'fa-edit','color'=>'#ff3333','action'=>'jy_cmssign/news/','desc'=>'日常签到，享积分','image'=>'../addons/jy_cms/resource/images/jy_cmssign.png'),
			)),
);
//判断是否基本设置了
$setting = $this->plugin_setting('setting');
$plugin_setting = $setting['plugins'];
if($plugin_setting){
		$list[1]['list'] = $plugin_setting;
}
foreach($list as &$type){
	foreach($type['list'] as &$p){
		$install = check_permission($p['name']);
		if($install){
			$p['is_install'] = 1;
		}else{
			$p['is_install'] = 0;
		}
		
	}
}

return  $list;